<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: zxing::qrcode::Encoder Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>zxing</b></li><li class="navelem"><b>qrcode</b></li><li class="navelem"><a class="el" href="classzxing_1_1qrcode_1_1_encoder.html">Encoder</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pro-static-methods">Static Protected Member Functions</a> &#124;
<a href="classzxing_1_1qrcode_1_1_encoder-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">zxing::qrcode::Encoder Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a3de62451ddee1a743cd6a501b6c006b5"><td class="memItemLeft" align="right" valign="top"><a id="a3de62451ddee1a743cd6a501b6c006b5"></a>
static <a class="el" href="classzxing_1_1_ref.html">Ref</a>&lt; <a class="el" href="classzxing_1_1qrcode_1_1_q_r_code.html">QRCode</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>encode</b> (const std::string &amp;content, <a class="el" href="classzxing_1_1qrcode_1_1_error_correction_level.html">ErrorCorrectionLevel</a> &amp;ecLevel)</td></tr>
<tr class="separator:a3de62451ddee1a743cd6a501b6c006b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5902d25fe27d24f130bdf4306383792"><td class="memItemLeft" align="right" valign="top"><a id="ab5902d25fe27d24f130bdf4306383792"></a>
static <a class="el" href="classzxing_1_1_ref.html">Ref</a>&lt; <a class="el" href="classzxing_1_1qrcode_1_1_q_r_code.html">QRCode</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>encode</b> (const std::string &amp;content, <a class="el" href="classzxing_1_1qrcode_1_1_error_correction_level.html">ErrorCorrectionLevel</a> &amp;ecLevel, const <a class="el" href="classzxing_1_1_encode_hint.html">EncodeHint</a> *hints)</td></tr>
<tr class="separator:ab5902d25fe27d24f130bdf4306383792"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba2add9a12cbce53e88816bdfc278e3b"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzxing_1_1qrcode_1_1_encoder.html#aba2add9a12cbce53e88816bdfc278e3b">getAlphanumericCode</a> (int code)</td></tr>
<tr class="separator:aba2add9a12cbce53e88816bdfc278e3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48dcb9566662fce557554140f7bc4018"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classzxing_1_1qrcode_1_1_mode.html">Mode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzxing_1_1qrcode_1_1_encoder.html#a48dcb9566662fce557554140f7bc4018">chooseMode</a> (const std::string &amp;content, const std::string &amp;encoding=&quot;&quot;)</td></tr>
<tr class="separator:a48dcb9566662fce557554140f7bc4018"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acad10e61c5d9a60c2b4b990d7e1c5f4d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzxing_1_1qrcode_1_1_encoder.html#acad10e61c5d9a60c2b4b990d7e1c5f4d">appendModeInfo</a> (const <a class="el" href="classzxing_1_1qrcode_1_1_mode.html">Mode</a> &amp;mode, <a class="el" href="classzxing_1_1_bit_array.html">BitArray</a> &amp;bits)</td></tr>
<tr class="separator:acad10e61c5d9a60c2b4b990d7e1c5f4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49f0483c907f31535e9e55737b52305f"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzxing_1_1qrcode_1_1_encoder.html#a49f0483c907f31535e9e55737b52305f">appendLengthInfo</a> (int numLetters, const <a class="el" href="classzxing_1_1qrcode_1_1_version.html">Version</a> &amp;version, const <a class="el" href="classzxing_1_1qrcode_1_1_mode.html">Mode</a> &amp;mode, <a class="el" href="classzxing_1_1_bit_array.html">BitArray</a> &amp;bits)</td></tr>
<tr class="separator:a49f0483c907f31535e9e55737b52305f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a433ec7881304bbc5e64ab52417f04ad8"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzxing_1_1qrcode_1_1_encoder.html#a433ec7881304bbc5e64ab52417f04ad8">appendBytes</a> (const std::string &amp;content, <a class="el" href="classzxing_1_1qrcode_1_1_mode.html">Mode</a> &amp;mode, <a class="el" href="classzxing_1_1_bit_array.html">BitArray</a> &amp;bits, const std::string &amp;encoding)</td></tr>
<tr class="separator:a433ec7881304bbc5e64ab52417f04ad8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:aa23da89acf457013f3c9ea922829ff28"><td class="memItemLeft" align="right" valign="top"><a id="aa23da89acf457013f3c9ea922829ff28"></a>
static const std::string&#160;</td><td class="memItemRight" valign="bottom"><b>DEFAULT_BYTE_MODE_ENCODING</b> = &quot;ISO-8859-1&quot;</td></tr>
<tr class="separator:aa23da89acf457013f3c9ea922829ff28"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-static-methods"></a>
Static Protected Member Functions</h2></td></tr>
<tr class="memitem:acded0fc88e15822a03865e6c79591770"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzxing_1_1qrcode_1_1_encoder.html#acded0fc88e15822a03865e6c79591770">terminateBits</a> (int numDataBytes, <a class="el" href="classzxing_1_1_bit_array.html">BitArray</a> &amp;bits)</td></tr>
<tr class="separator:acded0fc88e15822a03865e6c79591770"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ca7def3abfac0b589fb2192bb33598d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzxing_1_1qrcode_1_1_encoder.html#a2ca7def3abfac0b589fb2192bb33598d">getNumDataBytesAndNumECBytesForBlockID</a> (int numTotalBytes, int numDataBytes, int numRSBlocks, int blockID, std::vector&lt; int &gt; &amp;numDataBytesInBlock, std::vector&lt; int &gt; &amp;numECBytesInBlock)</td></tr>
<tr class="separator:a2ca7def3abfac0b589fb2192bb33598d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56e0adac48f552a92621f7510df2412f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classzxing_1_1_bit_array.html">BitArray</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzxing_1_1qrcode_1_1_encoder.html#a56e0adac48f552a92621f7510df2412f">interleaveWithECBytes</a> (const <a class="el" href="classzxing_1_1_bit_array.html">BitArray</a> &amp;bits, int numTotalBytes, int numDataBytes, int numRSBlocks)</td></tr>
<tr class="separator:a56e0adac48f552a92621f7510df2412f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2beab277aa8d23fba54503850f664aac"><td class="memItemLeft" align="right" valign="top"><a id="a2beab277aa8d23fba54503850f664aac"></a>
static <a class="el" href="classzxing_1_1_array_ref.html">ArrayRef</a>&lt; byte &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>generateECBytes</b> (const std::vector&lt; byte &gt; &amp;dataBytes, int numEcBytesInBlock)</td></tr>
<tr class="separator:a2beab277aa8d23fba54503850f664aac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2d7a1f1874273d3bcd0b8b3f49d0e05"><td class="memItemLeft" align="right" valign="top"><a id="ae2d7a1f1874273d3bcd0b8b3f49d0e05"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>appendNumericBytes</b> (const std::string &amp;content, <a class="el" href="classzxing_1_1_bit_array.html">BitArray</a> &amp;bits)</td></tr>
<tr class="separator:ae2d7a1f1874273d3bcd0b8b3f49d0e05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97885af891389883ab53eef452e4c4bc"><td class="memItemLeft" align="right" valign="top"><a id="a97885af891389883ab53eef452e4c4bc"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>appendAlphanumericBytes</b> (const std::string &amp;content, <a class="el" href="classzxing_1_1_bit_array.html">BitArray</a> &amp;bits)</td></tr>
<tr class="separator:a97885af891389883ab53eef452e4c4bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e0137bb5e526ad43a2ad535b2b5bc21"><td class="memItemLeft" align="right" valign="top"><a id="a2e0137bb5e526ad43a2ad535b2b5bc21"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>append8BitBytes</b> (const std::string &amp;content, <a class="el" href="classzxing_1_1_bit_array.html">BitArray</a> &amp;bits, const std::string &amp;encoding)</td></tr>
<tr class="separator:a2e0137bb5e526ad43a2ad535b2b5bc21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a26bea95958a57177ed9131fb6d15f3"><td class="memItemLeft" align="right" valign="top"><a id="a9a26bea95958a57177ed9131fb6d15f3"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>appendKanjiBytes</b> (const std::string &amp;content, <a class="el" href="classzxing_1_1_bit_array.html">BitArray</a> &amp;bits)</td></tr>
<tr class="separator:a9a26bea95958a57177ed9131fb6d15f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a433ec7881304bbc5e64ab52417f04ad8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a433ec7881304bbc5e64ab52417f04ad8">&#9670;&nbsp;</a></span>appendBytes()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void zxing::qrcode::Encoder::appendBytes </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>content</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classzxing_1_1qrcode_1_1_mode.html">Mode</a> &amp;&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classzxing_1_1_bit_array.html">BitArray</a> &amp;&#160;</td>
          <td class="paramname"><em>bits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>encoding</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Append "bytes" in "mode" mode (encoding) into "bits". On success, store the result in "bits". </p>

</div>
</div>
<a id="a49f0483c907f31535e9e55737b52305f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49f0483c907f31535e9e55737b52305f">&#9670;&nbsp;</a></span>appendLengthInfo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void zxing::qrcode::Encoder::appendLengthInfo </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numLetters</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classzxing_1_1qrcode_1_1_version.html">Version</a> &amp;&#160;</td>
          <td class="paramname"><em>version</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classzxing_1_1qrcode_1_1_mode.html">Mode</a> &amp;&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classzxing_1_1_bit_array.html">BitArray</a> &amp;&#160;</td>
          <td class="paramname"><em>bits</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Append length info. On success, store the result in "bits". </p>

</div>
</div>
<a id="acad10e61c5d9a60c2b4b990d7e1c5f4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acad10e61c5d9a60c2b4b990d7e1c5f4d">&#9670;&nbsp;</a></span>appendModeInfo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void zxing::qrcode::Encoder::appendModeInfo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classzxing_1_1qrcode_1_1_mode.html">Mode</a> &amp;&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classzxing_1_1_bit_array.html">BitArray</a> &amp;&#160;</td>
          <td class="paramname"><em>bits</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Append mode info. On success, store the result in "bits". </p>

</div>
</div>
<a id="a48dcb9566662fce557554140f7bc4018"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48dcb9566662fce557554140f7bc4018">&#9670;&nbsp;</a></span>chooseMode()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classzxing_1_1qrcode_1_1_mode.html">Mode</a> zxing::qrcode::Encoder::chooseMode </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>content</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>encoding</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Choose the best mode by examining the content. Note that 'encoding' is used as a hint; if it is Shift_JIS, and the input is only double-byte Kanji, then we return <a class="el" href="">Mode#KANJI</a>. </p>

</div>
</div>
<a id="aba2add9a12cbce53e88816bdfc278e3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba2add9a12cbce53e88816bdfc278e3b">&#9670;&nbsp;</a></span>getAlphanumericCode()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int zxing::qrcode::Encoder::getAlphanumericCode </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>code</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>the code point of the table used in alphanumeric mode or -1 if there is no corresponding code in the table. </dd></dl>

</div>
</div>
<a id="a2ca7def3abfac0b589fb2192bb33598d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ca7def3abfac0b589fb2192bb33598d">&#9670;&nbsp;</a></span>getNumDataBytesAndNumECBytesForBlockID()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void zxing::qrcode::Encoder::getNumDataBytesAndNumECBytesForBlockID </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numTotalBytes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numDataBytes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numRSBlocks</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>blockID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>numDataBytesInBlock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>numECBytesInBlock</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get number of data bytes and number of error correction bytes for block id "blockID". Store the result in "numDataBytesInBlock", and "numECBytesInBlock". See table 12 in 8.5.1 of JISX0510:2004 (p.30) </p>

</div>
</div>
<a id="a56e0adac48f552a92621f7510df2412f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a56e0adac48f552a92621f7510df2412f">&#9670;&nbsp;</a></span>interleaveWithECBytes()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classzxing_1_1_bit_array.html">BitArray</a> * zxing::qrcode::Encoder::interleaveWithECBytes </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classzxing_1_1_bit_array.html">BitArray</a> &amp;&#160;</td>
          <td class="paramname"><em>bits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numTotalBytes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numDataBytes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numRSBlocks</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Interleave "bits" with corresponding error correction bytes. On success, store the result in "result". The interleave rule is complicated. See 8.6 of JISX0510:2004 (p.37) for details. </p>
<p>????? are we sure? </p>

</div>
</div>
<a id="acded0fc88e15822a03865e6c79591770"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acded0fc88e15822a03865e6c79591770">&#9670;&nbsp;</a></span>terminateBits()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void zxing::qrcode::Encoder::terminateBits </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numDataBytes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classzxing_1_1_bit_array.html">BitArray</a> &amp;&#160;</td>
          <td class="paramname"><em>bits</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Terminate bits as described in 8.4.8 and 8.4.9 of JISX0510:2004 (p.24). </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/exquisite/qrcode/qrdecode/zxing/zxing/qrcode/encoder/<a class="el" href="_encoder_8h_source.html">Encoder.h</a></li>
<li>R:/Develop/a0-develop/LibQQt/src/exquisite/qrcode/qrdecode/zxing/zxing/qrcode/encoder/QREncoder.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
